/** 
 * All Rights Reserved , Copyright (C) 2023 , 青岛鼎信通讯股份有限公司
 * 
 * CbbPmDeliverableActionAuto
 * 项目交付物
 * 
 * 修改纪录
 * 2023-06-24 版本：1.0 weixinmin 创建。
 * @version 版本：1.0
 * @author 作者：weixinmin
 * 创建日期：2023-06-24
 */

package com.topscomm.mis.cbb.pm.controller.auto;

import com.topscomm.mis.MisController;
import com.topscomm.mis.cbb.pm.base.pojo.CbbPmDeliverableEntity;
import com.topscomm.mis.cbb.pm.base.service.ICbbPmDeliverableService;
import com.topscomm.mis.cbb.pm.controller.CbbPmController;
import com.topscomm.pub.vo.ResponseResult;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public class CbbPmDeliverableControllerAuto extends CbbPmController {
	/**
	 * 
	 * @description: 
	 * @param paraMap
	 * @return
	 * @author: weixinmin
	 * @date: 2023-06-24
	 * @modify:
	 */
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();

		List<Map<String, Object>> sourcemoduleList = datacodeCache.getCodeListMap("SourceModule", "", "sortcode");
		codeMap.put("sourcemoduleList", sourcemoduleList);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		List<Map<String, Object>> deliverableTypeList = datacodeCache.getCodeListMap("DeliverableType", "", "sortcode");
		codeMap.put("deliverabletypeList", deliverableTypeList);
		return ResponseResult.ok(codeMap);
	}
}

